<?php

namespace catchAdmin\registration\request;

use catcher\base\CatchRequest;

class MessageRequest extends CatchRequest
{
    protected function rules(): array
    {
        // TODO: Implement rules() method.
        return [
            'title|模板标题' => 'require',
            'content|模板内容' => 'require'
        ];
    }

    protected function message(): array
    {
        return [
            'title.require' => '模板标题不能为空',
            'content.require' => '模板内容不能为空'
        ];
    }
}